package com.example.administrator.yuejian_15.model;


import com.example.administrator.yuejian_15.bean.MyBean;
import com.example.administrator.yuejian_15.iface.MyIface;
import com.example.administrator.yuejian_15.listener.TListener;
import com.example.administrator.yuejian_15.service.AllService;

import retrofit2.Call;
import retrofit2.Retrofit;

public class MyModel extends RetrofitBaseModel implements MyIface<MyBean> {

    private AllService allService;
    private Retrofit retrofit;
    public MyModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void myinfo(String uid, TListener<MyBean> tListener) {
        Call<MyBean> call = allService.myinfo(uid);
        callenqueue(call,tListener);

    }
}
